package com.adcc.monitoragent.bean;

import java.io.Serializable;
import java.util.Date;

public abstract class BaseBean  implements Serializable {
	private static final long serialVersionUID = 1L;
	/**
	 * 地址
	 */
	protected String ip;
	/** 
	 * 普通状态   服务状态  STOP异常状态      STARTED正常状态
	 */
	private String status;
	/**
	 * 汇总后状态
	 */
	protected int sumStatus;
	/**
	 * 汇总后状态消息
	 */
	protected String sumStatusMsg;
	/**
	 * 展现名称
	 */
	protected String showName;
	/**
	 * 展现类型，用来确定使用图片
	 */
	protected String showType;
	/**
	 * 固定窜
	 */
	private String fixType = "base";
	/**
	 * 数据接收时间
	 */
	protected Date reciveTime;
	/**
	 * 获取对象的唯一键值
	 * @return
	 */
	public abstract String buildKey();
	
	public int getSumStatus() {
		return sumStatus;
	}
	public void setSumStatus(int sumStatus) {
		this.sumStatus = sumStatus;
	}
	public String getShowType() {
		return showType;
	}
	public void setShowType(String showType) {
		this.showType = showType;
	}
	public String getShowName() {
		return showName;
	}
	public void setShowName(String showName) {
		this.showName = showName;
	}
	public Date getReciveTime() {
		return reciveTime;
	}
	public void setReciveTime(Date reciveTime) {
		this.reciveTime = reciveTime;
	}
	public String getSumStatusMsg() {
		return sumStatusMsg;
	}
	public void setSumStatusMsg(String sumStatusMsg) {
		this.sumStatusMsg = sumStatusMsg;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getFixType() {
		return fixType;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "BaseBean [ip=" + ip + ", sumStatus=" + sumStatus
				+ ", sumStatusMsg=" + sumStatusMsg + ", showName=" + showName
				+ ", showType=" + showType + ", fixType=" + fixType
				+ ", reciveTime=" + reciveTime + "]";
	}
	
	
}
